package o;

import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import com.huawei.appmarket.service.installfail.InsFailActivityProtocol;
import com.huawei.appmarket.service.installfail.InsFailActivityProtocol.Request;
import com.huawei.hwid.core.constants.HwAccountConstants;

public class ees implements cue<cuk> {
    public /* synthetic */ void ˋ(Context context, Object obj) {
        ˏ(context, (cuk) obj);
    }

    public void ˏ(Context context, cuk o_cuk) {
        Logger.ˎ("InstallFailPageHandler", "InstallFailPageHandler execute");
        cjo insFailActivityProtocol = new InsFailActivityProtocol();
        Request request = new Request();
        request.ˏ(o_cuk.ʽ());
        request.ˋ(o_cuk.ॱˋ());
        request.ॱ(o_cuk.ˊ());
        if (!TextUtils.isEmpty(o_cuk.ˋॱ())) {
            try {
                request.ˋ(Integer.parseInt(o_cuk.ˋॱ()));
            } catch (Throwable e) {
                Logger.ˋ("InstallFailPageHandler", o_cuk.ˋॱ(), e);
            }
        }
        insFailActivityProtocol.ॱ(request);
        cjm o_cjm = new cjm("installfailed.activity", insFailActivityProtocol);
        o_cjm.ॱ(context).addFlags(HwAccountConstants.FLAG_TRANSLUCENT_STATUS);
        if (!(context instanceof Activity)) {
            o_cjm.ॱ(context).addFlags(268435456);
        }
        cjk.ˎ().ˋ(context, o_cjm);
    }
}
